package com.huanxing.cloud.user.api.feign;

import com.huanxing.cloud.common.core.constant.ServiceNameConstants;
import com.huanxing.cloud.common.core.util.Result;
import com.huanxing.cloud.user.api.entity.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户地址远程调用
 *
 * @author lijx
 * @date 2024-11-14
 */
@FeignClient(contextId = "remoteUserAddressService", value = ServiceNameConstants.MALL_USER_SERVICE)
public interface RemoteUserAddressService {

	@GetMapping("/app/address/{id}")
	Result<UserAddress> getById(@PathVariable("id") String id);

}
